import request from '@/utils/request'

// 查询司机信息列表
export function listRenyuanliebiao(query) {
  return request({
    url: '/passenger/renyuanliebiao/list',
    method: 'get',
    params: query
  })
}

// 查询司机信息详细
export function getRenyuanliebiao(driverId) {
  return request({
    url: '/passenger/renyuanliebiao/' + driverId,
    method: 'get'
  })
}

// 新增司机信息
export function addRenyuanliebiao(data) {
  return request({
    url: '/passenger/renyuanliebiao',
    method: 'post',
    data: data
  })
}

// 修改司机信息
export function updateRenyuanliebiao(data) {
  return request({
    url: '/passenger/renyuanliebiao',
    method: 'put',
    data: data
  })
}

// 删除司机信息
export function delRenyuanliebiao(driverId) {
  return request({
    url: '/passenger/renyuanliebiao/' + driverId,
    method: 'delete'
  })
}
